package com.example.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author vsalw
 */
@Data
@ConfigurationProperties(prefix = "cors")
public class CorsProperties {
    private Boolean enabled;
    private String mappingPathPattern = "/**";
    private String[] allowedOrigins = {"*"};
    private String[] allowedMethods;
    private String[] allowedHeaders = {"*"};
    private String[] exposedHeaders;
    private Long maxAge = 1800L;
    private Boolean allowCredentials = true;
}
